package com.coincalf.wallet.feign.hystrix;

import com.coincalf.framework.dto.CoinRechargeDTO;
import com.coincalf.wallet.feign.CoinRechargeServiceClient;
import com.esotericsoftware.minlog.Log;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

/**
 * @author qiang
 */
@Component
public class CoinRechargeServiceClientFallback implements CoinRechargeServiceClient {

    /**
     * 查询充值列表
     *
     * @return
     */
    @Override
    public List<CoinRechargeDTO> queryPendingRecord() {
        Log.warn("链路断啦.......");
        return Collections.emptyList();
    }

    /**
     * 修改充值记录状态
     *
     * @param coinRecharge
     * @return
     */
    @Override
    public boolean modifyRechargeStatus(CoinRechargeDTO coinRecharge) {
        Log.warn("修改充币交易状态服务调用失败...");
        return false;
    }
}
